import { defineStore } from 'pinia';
import type { chaterType } from '@/model/chat';

export const useArticleStore = defineStore('article', {
  state: () => ({
		chater: null as chaterType | null, // 存储当前文章数据
  }),
  actions: {
    setCurrentArticle(article: chaterType) {
		this.chater = article; // 保存数据
    },
  },
});